package com.webside.points.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.webside.points.mapper.SystemUserMapper;
import com.webside.points.model.SystemUserEntity;
import com.webside.points.service.SystemUserService;
@Service
public class SystemUserServiceImpl implements SystemUserService{

	@Autowired
	SystemUserMapper systemUserMapper;
	
	@Override
	public int insert(SystemUserEntity systemUserEntity) {
		return systemUserMapper.insert(systemUserEntity);
	}

	@Override
	public int update(SystemUserEntity systemUserEntity) {
		return systemUserMapper.update(systemUserEntity);
	}

	@Override
	public List<SystemUserEntity> findAll() {
		return systemUserMapper.findAll();
	}

	@Override
	public int delete(int id) {
		return systemUserMapper.delete(id);
	}

	@Override
	public SystemUserEntity findById(int id) {
		return systemUserMapper.findById(id);
	}

	@Override
	public SystemUserEntity loginCheck(SystemUserEntity systemUserEntity) {
		return systemUserMapper.loginCheck(systemUserEntity);
	}

}
